<template>
  <el-dialog :visible.sync="visible" v-dialogDrag :title="title" :close-on-click-modal="false" class="tl-dialog" width="1200px" @open="open" @close="close" :append-to-body="true" :modal-append-to-body="true">
    <el-form class="tl-form" ref="form" :model="model" :rules="rules" label-width="150px" :disabled="disableEditSubmit">
      <el-row>
        <el-col :span="24">
          <el-form-item label="里程碑名称" prop="milepostname" :rules="rules.validateRequire">
            <el-input v-model="model.milepostname" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="计划达成日期" prop="planfinishtime" :rules="rules.validateRequire">
            <el-date-picker v-model="model.planfinishtime" type="date" placeholder="例：2021-01-01" value-format="yyyy-MM-dd" disabled></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="责任人" prop="responsible" :rules="rules.validateRequire">
            <el-input v-model="model.responsible" disabled></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="工号" prop="responsiblecode" disabled>
            <el-input v-model="model.responsiblecode" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="交付成果" prop="deliverable" disabled :rules="rules.validateRequire">
            <el-input v-model="model.deliverable" type="textarea" :rows="4" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="实际达成时间" prop="actualfinishtime" disabled>
            <el-date-picker v-model="model.actualfinishtime" type="date" placeholder="实际达成时间" value-format="yyyy-MM-dd" disabled></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="完成情况" prop="completionstatus" disabled :rules="rules.validateRequire">
            <el-input v-model="model.completionstatus" type="textarea" :rows="4" maxlength="1000" show-word-limit></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="差异分析" prop="differenceanalysis" disabled :rules="rules.validateRequire">
            <el-input v-model="model.differenceanalysis" type="textarea" :rows="4" maxlength="1000" show-word-limit></el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button :type="disableEditSubmit === false ? 'text' : 'primary'" @click="doCancelEdit">取消</el-button>
      <el-button type="primary" @click="doSubmitEdit" :loading="saveLoading" v-if="disableEditSubmit === false">确认</el-button>
    </div>
  </el-dialog>
</template>

<script>
/** mixins */
import { mixin_edit } from '@tapui/mixins/mixin_edit'
/** 子组件 */
/** 工具类 */
import { putAction, getAction, postAction, deleteAction } from '@tapui/utils/http'
/** VUE配置 */
export default {
  mixins: [mixin_edit],
  components: { },
  data() {
    return {
      moduleTitle: '项目策划-里程碑',
      urlPrefix: '/sd/projectMilepost/',
      url: {
        // 额外的url
      }
    }
  },
  props: {
  },
  methods: {
    loaded() {
    }
  }
}
</script>

